﻿using System.Collections.Generic;
using Missbot.Service;

namespace Missbot.AIModule.Gaming.SignIn
{
    public class SignInGroupRecord : DbBaseEntity
    {
        public string GroupID { get; init; }

        public string Content { get; set; } = "签到";
    }

    public static class SignInGroupDA
    {
        public static IEnumerable<SignInGroupRecord> Get()
        {
            return MongoService<SignInGroupRecord>.Get();
        }

        public static void Update(this SignInGroupRecord entity)
        {
            MongoService<SignInGroupRecord>.Update(entity);
        }

        public static void Insert(this SignInGroupRecord entity)
        {
            MongoService<SignInGroupRecord>.Insert(entity);
        }
    }
}